#ifndef Ys_cap_setup_H
#define Ys_cap_setup_H

#include <QDialog>
#include <QCameraInfo>
#include <QList>
#include <QCamera>
#include <QCameraViewfinder>

namespace Ui {
class Ys_cap_setup;
}

class Ys_cap_setup : public QDialog
{
    Q_OBJECT

public:
    explicit Ys_cap_setup(QWidget *parent = nullptr);
    ~Ys_cap_setup();
    void getResList(QString arg);

    void closeEvent(QCloseEvent *event);

private slots:

    void on_pb_save_clicked();

    void on_pb_exit_clicked();

    void on_cbCamera_currentTextChanged(const QString &arg1);


private:
    Ui::Ys_cap_setup *ui;
    //QList<QCameraInfo> list;
    QCamera * camera;
    bool initialized;
    int modes[10][50];//摄像头最多不超过10个，每种头的模式最多不超过50
    QString state1,state2,state3;
    //QString currentC;
    //QString currentM;
};

#endif // Ys_cap_setup_H
